function Uppic(p_strElementName, p_intNum, p_intUpDir)
{
	window.open('../upload.php?dir=' + p_intUpDir + '&input=' + p_strElementName + p_intNum,'','toolbar=no,scrollbars=no,location=no,resizable=yes,menubar=no,width=510,height=130,top=0,left=0');
}

function Delpic(p_strElementName, p_intNum, p_strNoImg)
{
	document.getElementById("m_" + p_strElementName + p_intNum).setAttribute("src", p_strNoImg);
	document.getElementById("h_" + p_strElementName + p_intNum).setAttribute("value", '');
}

var intMemberPicWidth = 100;
var intMemberPicHeight = 100;

function changeImg(p_strElementName, p_strPic, p_strImgName, p_strDir)
{
	var second = (new Date()).getSeconds();
	document.getElementById("m_" + p_strElementName).setAttribute("src", "../../uploadfile/" + p_strDir + "/" + p_strImgName + '?' + second);
	document.getElementById("h_" + p_strElementName).setAttribute("value", p_strImgName);
	document.getElementById("m_" + p_strElementName).setAttribute("width", intMemberPicWidth);
	document.getElementById("m_" + p_strElementName).setAttribute("height", intMemberPicHeight);
}